package code07_面向对象.继承;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月21日19:07
 */
public class Test03_构造方法调用 {
    public static void main(String[] args) {
       //Dog dog = new Dog();//调用父类子类无参
        Dog dog = new Dog("旺财",5,"公");//调用父子类带参
       // Dog dog = new Dog("旺财",5,"公","子类");
        System.out.println("------------");
        dog.show();
    }
}
